package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface NursingProjectMapper {


    Page<NursingProjectVo> selectPage(String name, Integer status);

    void instert(NursingProject nursingProject);

    NursingProject selectById(Long id);

    void update(NursingProject nursingProject);

    void updateStatus(Long id, Integer status);

    @Delete("delete from nursing_project where id = #{id}")
    void deletePro(Long id);

    List<NursingProjectVo> selectAll();


}
